//创建假接口地方
//1.引入
import Mock from 'mockjs'
import homeData from './homeData'

import stuData from './stuData'


import loginData from './LoginData'





Mock.setup({  //可省略
    timeout:300 
})

// 接口1 home页面获取数据接口 /homedata  get
Mock.mock(/\/homedata/,'get',homeData.getData)






// 接口2 student页面获取数据接口 /studata  get
Mock.mock(/\/studata/,'get',stuData.getData)

// 接口3 student页面单条删除 /studata  delete
Mock.mock(/\/studelete/,'post',stuData.deleteData)

// 接口4 student页面修改 /studata  
Mock.mock(/\/updatestu/,'post',stuData.updateData)
// 接口4 student页面批量删除 /studata  
Mock.mock(/\/deldeldata/,'post',stuData.dateData)





//接口2 Login页面 登录数据接口
Mock.mock(/\/login/,'post',loginData.getLoginData)


// 接口1 finance页面获取数据接口 /finance get
import financeData from './financeData'
Mock.mock(/\/financedata/,'get',financeData.getData)
Mock.mock(/\/delfinancedata/,'post',financeData.delData)
Mock.mock(/\/batchfinancedata/,'post',financeData.batchData)
Mock.mock(/\/dialogfinancedata/,'post',financeData.dialogData)


//接口2 Login页面 登录数据接口
Mock.mock(/\/login/,'post',loginData.getLoginData)
Mock.mock(/\/userBase/,'post',loginData.getUserData)
import inputdata from './inputdata'
// 获取用户基本信息
Mock.mock(/\/userBase/,'post',loginData.getUserData)
// import deldata from './inputdata'


// 模拟单选框中的数据u
Mock.mock(/\/inputdata/,'get',inputdata.getdata)
//后端删除数据
Mock.mock(/\/deldata/,'post',inputdata.delData)
// 后端添加数据
Mock.mock(/\/updatedata/,'post',inputdata.updateData)
// 后端批量数据
Mock.mock(/\/updeldata/,'post',inputdata.updelData)

